﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_SampleList.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_SampleList" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" />
     <style type="text/css">
        .x-grid3-row-body .dt_box {
            background: white;
            border-bottom: 1px dashed #D8D8D8;
            word-wrap: break-word;
            word-break: break-all;
            overflow: hidden;
        }

            .x-grid3-row-body .dt_box p {
                color: #666;
                font-size: 14px;
                line-height: 24px;
            }

        .cont2_span {
            line-height: 23px;
            color: #b2b2b2;
            display: inline-block;
        }

            .cont2_span a {
                text-decoration: underline;
            }

            .cont2_span img {
                vertical-align: middle;
                margin-right: 2px;
                padding-bottom: 2px;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pan1" />
        <ext:Panel ShowBorder="false" ShowHeader="false" runat="server" ID="pan1" Layout="Fit">
            <Toolbars>
                <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入项目编号" Trigger2Icon="Search" runat="server" Width="180px">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Grid ID="Grid1" Title="通知/公告管理" ShowHeader="false" ShowBorder="false" runat="server" EnableCheckBoxSelect="true" DataKeyNames="ID,STATUS"
                    OnRowDataBound="Grid1_RowDataBound" AllowPaging="true" OnRowSelect="Grid1_RowSelect" EnableRowSelect="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:Button ID="btnNew" Text="添加" Icon="Add" EnablePostBack="false" runat="server">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="Button1" Text="修改" Enabled="false" OnClick="Button1_Click" Icon="ApplicationEdit" runat="server">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="Button2" Text="删除" Enabled="false" OnClick="Button2_Click" Icon="Delete" runat="server" ConfirmText="您确定要这么做吗？">
                                </ext:Button>
                                <ext:ToolbarText ID="ToolbarText1" runat="server" Enabled="false" Text="<span style='color:#999'>双击可编辑数据</span>"></ext:ToolbarText>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Columns>
                         <ext:TemplateField RenderAsRowExpander="true">
                            <ItemTemplate>
                                <div class="dt_box" style="padding-left: 10px;">
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td class="text_box" colspan="2">
                                                    <p style="color: #bbb;"><span class="name">备注：<%#Eval("REMARK") %></span></p>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>

                            </ItemTemplate>
                        </ext:TemplateField>
                        <ext:BoundField Width="120px" DataField="PRJNUB" DataFormatString="{0}" HeaderText="项目编号" />
                        <ext:BoundField Width="100px" DataField="MoneyType" DataFormatString="{0}" HeaderText="费用类型" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="REQTOR" DataFormatString="{0}" HeaderText="申请者" TextAlign="Center" />
                        <ext:BoundField Width="130px" DataField="AddTime" DataFormatString="{0}" HeaderText="申请时间" TextAlign="Center"/>
                        <ext:BoundField Width="100px" DataField="AMOUNT" DataFormatString="{0}" HeaderText="费用金额" TextAlign="Center" />
                        <ext:BoundField Width="80px" DataField="STATUS" DataFormatString="{0}" HeaderText="状态" TextAlign="Center" />
                        <ext:WindowField ColumnID="myWindowField" Width="90px" WindowID="Window1" DataTextFormatString="{0}" DataIFrameUrlFields="ID"
                            DataIFrameUrlFormatString="Pro_SampleChange.aspx?id={0}&s=1" DataWindowTitleField="PRJNUB"
                            DataWindowTitleFormatString="审批出样费用" TextAlign="Center" HeaderText="操作" Text="进行审批" />
                    </Columns>
                </ext:Grid>
            </Items>
        </ext:Panel>
        <ext:Window runat="server" ID="Window2" Popup="false" IsModal="true">
            <Items>
                <ext:Button runat="server" Text="审批通过" Icon="Accept"></ext:Button>
                <ext:Button ID="Button3" runat="server" Text="审批不通过" Icon="Decline"></ext:Button>
            </Items>
        </ext:Window>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="505px" Height="320px">
        </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>

</body>
</html>
